package com.myapi.client;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Set;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.Order;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.Embedded;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PlayerHandInfo implements Serializable{
	@PrimaryKey      
	   @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		     private String phId; 


	@NotPersistent
	PlayerInfo playerInfo;
	@Persistent
	boolean mucked;
	@Persistent
	boolean allIn;
	@Persistent
	@Order(column="CARDS_IDX")
	ArrayList<CardInfo> cards;
	@Persistent
	double odds;
	@Persistent
	ArrayList<Double> raise;
	@Persistent
	ArrayList<Double> call;
	@Persistent
	double chipsDiff;

	public PlayerHandInfo(){
		odds=0;
	}

	public PlayerInfo getPlayerInfo() {
		return playerInfo;
	}

	public void setPlayerInfo(PlayerInfo playerInfo) {
		this.playerInfo = playerInfo;
	}

	public boolean isMucked() {
		return mucked;
	}

	public void setMucked(boolean mucked) {
		this.mucked = mucked;
	}

	public ArrayList<CardInfo> getCards() {
		return cards;
	}

	public void setCards(ArrayList<CardInfo> cards) {
		this.cards = cards;
	}

	public double getOdds() {
		return odds;
	}

	public void setOdds(double odds) {
		this.odds = odds;
	}

	public ArrayList<Double> getRaise() {
		return raise;
	}

	public void setRaise(ArrayList<Double> raise) {
		this.raise = raise;
	}

	public ArrayList<Double> getCall() {
		return call;
	}

	public void setCall(ArrayList<Double> call) {
		this.call = call;
	}

	public double getChipsDiff() {
		return chipsDiff;
	}

	public void setChipsDiff(double chipsDiff) {
		this.chipsDiff = chipsDiff;
	}

	public boolean isAllIn() {
		return allIn;
	}

	public void setAllIn(boolean allIn) {
		this.allIn = allIn;
	}
}
